from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.site.login_template = 'admin/login.html'
admin.autodiscover()
from django.conf import settings


    # Uncomment the next line to enable the admin:
urlpatterns = patterns('',  
        (r'^polls/', include('museumweb.polls.urls')),      
        (r'^admin/', include(admin.site.urls)),
        (r'^admin/doc/', include('django.contrib.admindocs.urls')),
        #(r'^',include('museumweb.mainpage.urls')),
        (r'^mainpage/',include('museumweb.mainpage.urls')),
        (r'^$',direct_to_template, {'template':'index.html'},'index'),
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
         {'document_root': settings.MEDIA_ROOT}),
)

